(bug 15673) Add indentation and newlines to format=wddxfm output:
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 25 Sep 2008 14:23:24 +0000 (14:23 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 25 Sep 2008 14:23:24 +0000 (14:23 +0000)
commitb3d5508c103d50dbffc743d5c6efed505038d583
treea8daa2e627995a26c2b6f6feae88f35b21a86dfb
parentf21d58ac0fabca91e7f3b808b82ec56630c02669
(bug 15673) Add indentation and newlines to format=wddxfm output:
* Like the JSON formatter, use our own WDDX formatter when PHP's is not available or the user asked for pretty output (PHP's doesn't do indentation)
* Don't prettify when our own formatter is used because PHP's is not avaiable
* Detect regular arrays (with sequential integer keys) and use <array> for them, rather than using <struct> for all arrays. PHP's formatter does this as well. This change should make our WDDX formatter's output identical to PHP's
RELEASE-NOTES
includes/api/ApiFormatWddx.php